<?php

namespace app\api\controller;

use app\api\model\NavModel;
use app\BaseController;

class Nav extends BaseController
{
    public function index()
    {
        $model = NavModel::field('id,name,url')->where('status', 1)->select()->toArray();
        $this->success('获取成功', $model);
    }
}